import request from "axios";

const getListAsync = (data) => {
    return request({
        url: '/api/home',
        method: 'get',
        headers: {
            'Content-Type': 'application/json',
        },
        data: {
            data: data
        }
    })
}

const getEmail = (data) => {
    return request({
        url: '/api/list',
        method: 'post',
        headers: {
            'Content-Type': 'application/json',
        },
        data: {
            data: data
        }
    })
}

export default {
    getListAsync,
    getEmail
}

